import { normalizeContainer } from '../../../../global_comps/Func/normalizeContainer';
import {
  user_login_account_inp,
  user_login_border,
  user_login_func_submit,
  user_login_passworld_inp,
  user_logined,
} from '../DataDefine/sourceData';
import type { user_login_props } from './cla_user_login_props';

const user_login_staticNodeTag = 'user_login_staticNode';

export class user_login_staticNode {
  get [Symbol.toStringTag]() {
    return user_login_staticNodeTag;
  }

  constructor(props?: user_login_props) {}

  /**
   * 登录 本体
   */
  dom_border = normalizeContainer(user_login_border)!;

  /**
   * 用户 登录 成功
   */
  dom_logined = normalizeContainer(user_logined)!;

  /**
   * 用户 账号
   */
  inp_account: HTMLInputElement = normalizeContainer(
    user_login_account_inp
  )! as any;

  /**
   * 用户 密码
   */
  inp_passworld: HTMLInputElement = normalizeContainer(
    user_login_passworld_inp
  )! as any;

  /**
   * 提交按钮
   */
  dom_submit = normalizeContainer(user_login_func_submit)!;
}
